home *** CD-ROM | disk | FTP | other *** search
-
- THE SPRITE GRABBER v1.0
- -----------------------
- 1994, Pablo Fuentes
-
-
- This is a small utility I made because I was getting tired of all
- the work I had to do in order to draw bitmap images and then converting
- them into a format that enables me to use them in my programs.
-
- What SPRITE GRABBER does is load a graphic image up to 360x480
- pixels large in modeX and lets you GRAB one or more sprites from that
- image and save them in Xlib's Planar Bitmap (PBM) format.
-
- To quickly see how SGRAB works just run the sprite demo by
- simply typing: PACDEMO
-
-
-
- USING THE SPRITE GRABBER
- ------------------------
-
- Let's say that you make a PCX image with a drawing program which
- contains a series of drawings of a man walking. Just run SPRITE GRABBER
- with the PCX filename as an argument and it will load it and show you a
- rectangle on the center of the screen. You can then move the rectangle
- around, resize it to your liking and GRAB the drawings. Each drawing will
- be saved as a PBM file which you can reload with a press of a button.
-
- Now you exit the program and restart it loading a new image this
- time (say in GIF format) which is going to be your background image. You
- can then press ALT-L to load a masked version of your sprites on top of
- your backgroung to see how they look or to try out the animation aspects
- of the sprites (by pressing ALT-L repeatedly). Beware though that the
- sprites will be displayed using the new palette, so make sure the palettes
- are compatible. After that, keep the sprites you liked most and use them
- in your program by simply loading them.
-
-
-
- FEATURES
- --------
-
- * Loads images in Compuserve GIF, Deluxe Paint LBM and BBM, PCX
- and PIX formats.
- * Images up to 360x480 pixels in size with up to 256 colors.
- * Grab sprites as large as 100x100 pixels.
- * Reload and display sprites in normal or masked mode.
- * Mouse and keyboard supported.
- * Source code available.
-
-
- REQUIREMENTS
- ------------
-
- * 80286 IBM-PC or 100% compatible with at least 512K of RAM
- * VGA card and monitor capable of displaying 320x200x256c images
- * A Floppy Disk or Hard Disk with enought space for the saved sprites.
- * Mouse recommended
-
-
- DISTRIBUTION
- ------------
-
- You can freely distribute this program to anyone as long as you
- don't charge anything for it (who'd want to pay for this anyway?).
-
- Please be aware that this program is delivered as is, with no
- warranty whatsoever. Therefore I will not accept any responsibility for
- any damage that might be caused by this software.
-
- The C source for this program is available but not included in
- this package. You can get the source code as well as updates for this
- program by anonymous FTP from "ftp.droit.umontreal.ca" in the directory
- "/pablo".
-
-
-
- SPRITE GRABBER USAGE
- --------------------
-
- Here's the command line syntax:
-
- sgrab <filename.ext> [Sprite_Width] [Sprite_Height]
-
- 4 ≤ Sprite_Width ≤ 100 pixels (Multiple of 4)
- 1 ≤ Sprite_Height ≤ 100 pixels
-
-
- To move the rectangle, simply move your mouse around or use the keyboard
- arrow keys. Use ALT+arrow keys for faster movement.
-
- Here's a list of the keys used:
-
- H: Call the HELP screen (Right mouse button)
- S: Save a sprite in PBM format
- L: Load the next sprite and display it
- ALT+L: Display the next sprite in masked mode
- R: Resize or stop resizing the working rectangle (Left mouse button)
- ESC: Quit
-
-
- ACKNOWLEDGEMENTS
- ----------------
-
- Most of the 'real' code in this program was borrowed from sample code
- I picked up here and there. This includes the ModeX graphics library and most
- of the picture loading routines. So I would like to acknowledge the authors.
-
- I wish to thank Themie Gouthas for his great ModeX graphics library
- (Xlib) and Lary Myers for his ACKIFF utility to load Deluxe Paint LBM and BBM
- formatted images (from his ACK3D kit). Another aknowledgement to Shawn Knight
- for his PCX loading routine (from PCX2IMG) that was apparently borrowed from
- somebody else whom I also would like to acknowledge. Finally, thanks to the
- author of the GIFDCD.C code (whoever he is).
-
-
-
- Please send comments, suggestions or source code requests to:
-
- Pablo Fuentes
- 6508 Drolet
- Montreal, Quebec
- Canada H2S 2S8
-
- Email : fuentesp@lazio.droit.umontreal.ca
-